don't write out </apply_tag> for tags that have already been closed by the
authorMichael Natterer <mitch@imendio.com>
Mon, 28 Aug 2006 16:14:42 +0000 (16:14 +0000)
committerMichael Natterer <mitch@src.gnome.org>
Mon, 28 Aug 2006 16:14:42 +0000 (16:14 +0000)
commit0fa6144940197ff150e232a53c2da515296e12b0
treeda6f63e9be0c6925e3515d3f1c0e364422ee7c39
parent21ac0b0b4045ebedfcf1c6a8dc527a3f5d20c372
don't write out </apply_tag> for tags that have already been closed by the

2006-08-28  Michael Natterer  <mitch@imendio.com>

* gtk/gtktextbufferserialize.c (serialize_text): don't write out
</apply_tag> for tags that have already been closed by the logic
which turns overlapping spans into XML-able trees. Fixes broken
XML when there are overlapping tags in the buffer. Also free two
leaked GLists and did some cleanup.

* tests/Makefile.am
* tests/testrichtext.c: new test which creates randomly tagged
GtkTextBuffers and serializes/deserializes them.
ChangeLog
gtk/gtktextbufferserialize.c
tests/Makefile.am
tests/testrichtext.c [new file with mode: 0644]